package com.xique.door.biz.service;

import com.xique.door.bean.domain.AccessDevice;
import com.xique.door.bean.domain.BuildBuilding;
import com.xique.door.bean.dto.DeviceBuildingInfoDTO;

import java.util.List;

/**
 * @author shd
 * @create 2022/1/29 13:34
 */
public interface IBuildingDeviceBizService {

    /**
     * 楼栋设备插入
     * @author shd
     * @date 2022/1/29 13:51
     * @param accessDevice
     * @param foreignType
     * @param foreignId
     * @return boolean
     */
    boolean insertBuildingDevice(AccessDevice accessDevice, String foreignType, Long foreignId);

    /**
     * 获取设备对应区域信息
     * @author shd
     * @date 2022/2/9 13:57
     * @param foreignId
     * @param foreignType
     */
    DeviceBuildingInfoDTO selectDeviceBuildingInfo(Long foreignId, String foreignType);

    /**
     * 楼栋设备插入
     * @author shd
     * @date 2022/4/4 13:53
     * @param buildings
     * @return boolean
     */
    boolean insertBuildingDevice(List<BuildBuilding> buildings);
}
